#ifndef PLAYAUDIO_H
#define PLAYAUDIO_H

#include <QThread>
#include <QStringList>

class PlayAudio : public QThread
{
  Q_OBJECT

  enum State {PLAYING, STOP};

public:
  PlayAudio(QObject *parent);

  void addFile(const QString &file);

  void run() Q_DECL_OVERRIDE;
private:
  QString file;
  QStringList fileList;
  State state;

signals:
  void toogle();
};

#endif // PLAYAUDIO_H
